package com.meichis.yndms.adapter;

import android.content.Context;

import com.meichis.mcsappframework.adapter.recyclerview.CommonAdapter;
import com.meichis.mcsappframework.adapter.recyclerview.base.ViewHolder;
import com.meichis.yndms.R;
import com.meichis.yndms.model.MinStatistical;

import java.util.List;

public class MinStatisticalAdapter extends CommonAdapter<MinStatistical> {


    public MinStatisticalAdapter(Context context, int layoutId, List<MinStatistical> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convert(ViewHolder holder, MinStatistical minStatistical, int position) {
        holder.setText(R.id.tv_name,minStatistical.getStaffName());
        holder.setText(R.id.tv_total_store, minStatistical.getTotalCount() + "");
        holder.setText(R.id.tv_register_store,minStatistical.getRegistCount() + "");
        holder.setText(R.id.tv_login_store,minStatistical.getLoginCount() +"");
        holder.setText(R.id.tv_login_rate,minStatistical.getLoginInRegRate());

    }
}
